/*
 * @Author: shenya
 * @Date: 2023-08-11 10:29:12
 * @Description:
 */
import { PET_FEEDBACK_JOB_TYPE_DICT } from '@/const/type';
export const tableOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 120,
    column: [
      {
        label: '用户昵称',
        prop: 'nickname',
        search: true,
        width: 120,
        overHidden: true,
      },
      {
        label: '手机号',
        prop: 'phone',
        search: true,
      },
      {
        label: '已反馈任务数',
        prop: 'jobQty',
        width: 120,
      },
      {
        label: '宠物昵称',
        prop: 'petNickname',
        search: true,
      },
      {
        label: '宠物编号',
        prop: 'petCode',
        search: true,
      },
      {
        label: '领养时间',
        prop: 'adoptTime',
        width: 160,
      },
    ],
  };
};
//任务清单
export const listOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 120,
    column: [
      {
        label: '任务类型',
        prop: 'configType',
        dicData: PET_FEEDBACK_JOB_TYPE_DICT,
      },
      {
        label: '任务名称',
        prop: 'name',
      },
      {
        label: '任务描述',
        prop: 'jobDesc',
        width: 120,
        overHidden: true,
      },
      {
        label: '领养时间节点',
        prop: 'timeRemark',
      },
      {
        label: '任务开始时间',
        prop: 'jobTime',
        width: 160,
      },
      {
        label: '用户反馈时间',
        prop: 'feedbackTime',
        width: 160,
      },
    ],
  };
};
